<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link rel="stylesheet" href="view/default.css" type="text/css" />
	<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
	<title>myScheduleChange</title>
</head>
<body>
	<div class="body"></div>
    <div class="header">
		<jsp:include page="head.html"/>
	</div>
    <div class="login">
    
    <!-- Überprüfung ob mit einem Error in die Seite gegangen wird, z.B. falsches Passwort.
    		Wenn ja, dann wird die entsprechende Fehlermeldung über der Loginmaske angezeigt.
    		Ansonsten normaler Start mit Loginmaske. -->
    <% 
      String error = request.getParameter("error");
      if (error != null) { 
    %> 
        <p style="color: red">Error: <%=error%>.</p>
    <% 
      } 
    %>
    
    <!-- Loginmaske -->
    <h1 style="margin-lift:80px">Login</h1>
    
    <form method="post" action="j_security_check">
      <table style="border-width:0px">
        <tr>
          <td align="left" style="border-width:0px; font-weight:bold">Username:</td>
          <td align="left" style="border-width:0px"><input type="text" name="j_username"/></td>
        </tr>
        <tr>
          <td align="left" style="border-width:0px; font-weight:bold">Password:</td>
          <td align="left" style="border-width:0px"><input type="password" name="j_password"/></td>
        </tr>
        <tr>
          <td align="left" style="border-width:0px">&nbsp;</td>
          <td align="left" style="border-width:0px"><input type="submit" value="Log In"/></td>
        </tr>
        <tr>
          <td align="left" style="border-width:0px">&nbsp;</td>
          <td align="left" style="border-width:0px"><a href="UserRegister.s"> Registrierung</a></td>
        </tr>
      </table>
    </form>
    </div>
</body>
</html>